package com.itheima.edu.info.manager.util;

import com.itheima.edu.info.manager.dao.BaseStaffDao;
import com.itheima.edu.info.manager.dao.BaseTeacherDao;
import com.itheima.edu.info.manager.dao.OtherTeacherDao;

public class TeacherFactory {
    private static BaseTeacherDao baseTeacherDao;

    public static BaseTeacherDao getTeacherDao(){
        if (baseTeacherDao == null){
            baseTeacherDao = new OtherTeacherDao();
        }
        return baseTeacherDao;
    }
}
